-- GENERATED SPELL FOR [Lesser Nether Drake] --


function spell0_21004(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21004', 8322, 1)
end

function Sorts_21004(pUnit, Event)
local choix_sorts_21004 = math.random(0, 0)
if choix_sorts_21004 == 0 then
pUnit:RegisterEvent('spell0_21004', 1, 1)
end
end

function mob21004_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21004', math.random(1500, 3000), 1)
end

function mob21004_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21004_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21004_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21004, 1, 'mob21004_Action')
RegisterUnitEvent(21004, 2, 'mob21004_Leave')
RegisterUnitEvent(21004, 3, 'mob21004_Kill')
RegisterUnitEvent(21004, 4, 'mob21004_Die')
